package com.sjy.framework;

public enum SystemErrorEnum implements CodeNodeErrorGetter {

    SYSTEM_ERROR("SYSTEM_ERROR","system error","系统繁忙");

    private CodeNodeError error;

    private SystemErrorEnum(String code, String message, String view){
        this.error = new CodeNodeError(code,message,view);
    }

    public String toString(){
        return this.error.toString();
    }

    public CodeNodeError getError(Object... args){
        return this.error;
    }
}
